CKEDITOR.editorConfig = function(config) {

	config.language = 'zh-cn';

	// 设置宽高

	// config.width = 800;

	//config.height = 300;

	// 背景颜色
	config.uiColor = '#B1EEFA';

	// 工具栏（基础'Basic'、全能'Full'、自定义）plugins/toolbar/plugin.js

	// config.toolbar = 'Basic';

	config.toolbar = 'Full';
	config.toolbar_Full = [
	// 左对齐 居中对齐 右对齐 两端对齐
	[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
	// 图片 flash 表格 水平线 表情 特殊字符 分页符
	[ 'Image', 'HorizontalRule', 'Smiley' ],
	// 样式 格式 字体 字体大小
	[ 'Format', 'Font', 'FontSize' ],
	// 文本颜色 背景颜色
	[ 'TextColor', 'BGColor' ], ];
	
	 //设置编辑器里字体下拉列表里的字体
	config.font_names='宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;'+ config.font_names; 

	// 设置是否可以自增长
	config.extraPlugins = 'autogrow';
	config.autoGrow_onStartup=false;
	config.autoGrow_maxHeight=600;
	//config.autoGrow_minHeight=300;

	// 工具栏是否可以被收缩
	config.toolbarCanCollapse = true;

	// 工具栏的位置
	config.toolbarLocation = 'top';// 可选：bottom

	// 工具栏默认是否展开
	config.toolbarStartupExpanded = true;
	
	//去掉左下角的body和p标签
	config.removePlugins = 'elementspath'; 

	//自定义表情库
	config.smiley_images = [ 
	'icon1.gif','icon2.gif','icon3.gif','icon4.gif','icon5.gif','icon6.gif','icon7.gif','icon8.gif','icon9.gif','icon10.gif',
	'icon11.gif','icon12.gif','icon13.gif','icon14.gif','icon15.gif','icon16.gif','icon17.gif','icon18.gif','icon19.gif','icon20.gif',
	'icon21.gif','icon22.gif','icon23.gif','icon24.gif','icon25.gif','icon26.gif','icon27.gif','icon28.gif','icon29.gif','icon30.gif',
	'icon31.gif','icon32.gif','icon33.gif','icon34.gif','icon35.gif','icon36.gif','icon37.gif','icon38.gif','icon39.gif','icon40.gif',
	'icon41.gif','icon42.gif','icon43.gif','icon44.gif','icon45.gif','icon46.gif','icon47.gif','icon48.gif','icon49.gif','icon50.gif',
	'icon51.gif','icon52.gif','icon53.gif','icon54.gif','icon55.gif','icon56.gif','icon57.gif','icon58.gif','icon59.gif','icon60.gif',
	'icon61.gif','icon62.gif','icon63.gif','icon64.gif','icon67.gif','icon68.gif','icon69.gif','icon70.gif',
	'icon71.gif','icon72.gif','icon73.gif','icon74.gif','icon75.gif']; 
	 config.smiley_descriptions=[
	'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20',
	'21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40',
	'41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60',
	'61','62','63','64','65','66','67','68','69','70','71','72','73'];

	// 取消 “拖拽以改变尺寸”功能 plugins/resize/plugin.js
	// config.resize_enabled = true;

	// 改变大小的最大高度

	// config.resize_maxHeight = 480;

	// 改变大小的最大宽度
	// config.resize_maxWidth = 800;

	// 改变大小的最小高度
	// config.resize_minHeight = 380;

	// 改变大小的最小宽度
	// config.resize_minWidth = 500;

	// 当提交包含有此编辑器的表单时，是否自动更新元素内的数据
	// config.autoUpdateElement = true;

	// 编辑器的z-index值
	// config.baseFloatZIndex = 10000;

	// 设置是使用绝对目录还是相对目录，为空为相对目录
	//config.baseHref = '';
	// 获取带"/"的项目名，如：/uimcardprj
	var pathName = window.document.location.pathname;
	var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);

	// 图片浏览配置
	// config.filebrowserImageBrowseUrl = 'browerServer.do?type=image';

	// config.filebrowserUploadUrl = 'upLoad.php?Type=File';//上传文件的保存路径
	config.filebrowserImageUploadUrl = 'upload_excuteImageAction?Type=Image';// 上传图片的保存路径
	// config.filebrowserFlashUploadUrl = 'upLoad.php?Type=Flash';//上传flash的保存路径

};
